package com.wmm.advice;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAdvice {

    @Pointcut("execution(* com.wmm.service.impl.*.*(..))")
    public void myPoint(){};

    @Before("MyAdvice.myPoint()")
    public void before(){
        System.out.println("前置增强...");
    }
}
